<?php

namespace Amcolin\GiteeUpdate;

use Illuminate\Support\ServiceProvider;

class GiteeUpdateProvider extends ServiceProvider
{
    public function boot(){
        // 发布配置文件
        $this->publishes([
            __DIR__ . '/config/gitee.php' => config_path('gitee.php') ,
        ]);
        $this->loadRoutesFrom(__DIR__.'/routes/api.php');
    }

    public function register(){
        $this->app->singleton('gitee_update' , function ($app){
            return new GiteeUpdate();
        });
    }
}